package com.own.component.common.base.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.FieldNameConstants;

import java.io.Serializable;
import java.util.List;

/**
 * BaseTreeVo
 *
 * @author chenxueli
 * @date 2022-06-15 03:14:15
 */
@Schema(title = "树型TreeVo")
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
@FieldNameConstants
public abstract class BaseTreeVo<T> implements Serializable {

    @Schema(title = "当前项目")
    private T item;

    @Schema(title = "子节点")
    private List<T> children;

}
